package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.pojo.User;
import com.itheima.service.DemoService;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/qq")
public class Demo {
    @Reference
     DemoService demoService;

    @RequestMapping("/ww")
    public void run(){
        List<User> run = demoService.run();
        for (User user : run) {
            System.out.println(user);
            System.out.println("x");
        }
    }
}
